package com.maila.calltaxi_driver.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.maila.calltaxi_driver.R;
import com.maila.calltaxi_driver.view.ChangePhonePop;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/7/5.
 */

public class ResetPhoneActivity extends AppCompatActivity {


    @BindView(R.id.tv_phone_num)
    TextView tvPhoneNum;
    @BindView(R.id.btn_change_num)
    TextView btnChangeNum;
    ChangePhonePop   pushWinDialog;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.reset_phone_activity);
        ButterKnife.bind(this);
        pushWinDialog=new ChangePhonePop(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @OnClick({R.id.return_iv, R.id.btn_change_num})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.return_iv:
                finish();
                break;
            case R.id.btn_change_num:
                pushWinDialog.showAtLocation(getWindow().getDecorView(), Gravity.CENTER,0,0);
                break;
        }
    }
}
